package cn.mesmile.video.dao;

import cn.mesmile.daomain.Video;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author zb
 * @version 1.0
 * @date 2020/10/24 13:01
 * @description
 */
@Repository
public interface VideoMapper {

    /**
     *  通过 videoId 来获取 Video
     * @param videoId
     * @return
     */
    @Select("select * from video where id=#{videoId}")
    Video getVideoById(@Param("videoId") Integer videoId);


}
